package com.xbongbong.pro.label.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author guohui.zhang
 * @Title:
 * @date 2020/11/310:49
 */
@Getter
@Setter
@ToString
public class LabelSaveDTO extends BaseDTO {

    private static final long serialVersionUID = -1690643548569792576L;
    /**
     * 标签id
     */
    private Long id;
    /**
     * 应用id
     */
    private Long appId;
    /**
     * 表单id
     */
    private Long formId;
    /**
     * 业务类型
     */
    private Integer businessType;
    /**
     * 分组id
     */
    @NotNull(message = "dto.msg.LabelSaveDTO.groupId.NotNull")
    private Long groupId;
    /**
     * 颜色
     */
    private String color;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 是否移入回收站
     */
    private Integer enable;
    /**
     * 标签名称
     */
    private String name;
    /**
     * 标签是否重复
     */
    private Integer repeat;


    public LabelSaveDTO(Long id, Long appId, Long formId, Integer businessType, Long groupId, String color, Integer sort, Integer enable, String name, Integer repeat) {
        this.id = id;
        this.appId = appId;
        this.formId = formId;
        this.businessType = businessType;
        this.groupId = groupId;
        this.color = color;
        this.sort = sort;
        this.enable = enable;
        this.name = name;
        this.repeat = repeat;
    }

    public LabelSaveDTO() {
        id =0L;
    }
}
